<template>
  <el-dialog :visible.sync="dialogVisible" custom-class="dialog-common">
    <div class="dialog-title" slot="title">
      请选择家庭成员
    </div>
    <div class="re">
      <div class="select-family-top">
        <i class="iconfont icon-jia"></i>
        <router-link to="/personal/family">添加家庭成员</router-link>
      </div>
      <ul class="select-family-member">
        <li v-for="(f, i) in familys" :key="f.id" @click="changePerson(f)">
          <el-radio v-model="familyRadio" :label="i">
            {{f.personName}}
            <small class="t3">
              （{{FAMILY_RALATION[f.relation]}}）
            </small>
          </el-radio>
        </li>
      </ul>
  
    </div>
    <div class="center" style="margin-top:50px;">
      <el-button class="sprites btn-login" @click="dialogVisible = false">确定</el-button>
      <el-button class="sprites btn-register" @click="dialogVisible = false">取消</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  
}
</script>

<style lang="less">
.select-family-top {
  position: absolute;
  top: -60px;
  right: 41px;
}

.select-family-member {
  margin-top: 40px;
  overflow: hidden;
  li {
    float: left;
    width: 50%;
    margin-bottom: 20px;
  }
  .el-radio__label {
    font-size: 16px;
    display: inline-block;
    background: #fff;
    border: 1px solid #F8E6E2;
    padding: 10px;
    margin: 0 10px;
    width: 240px;
  }
}
</style>
